#ifndef __WS2812B_H
#define	__WS2812B_H

#include "stm32f10x.h"
#include "delay.h"	
#include <stdio.h>

extern	uint8_t rgb0[1][3];
extern	uint8_t rgb1[1][3];	
extern	uint8_t rgb2[1][3];
extern	uint8_t rgb3[1][3];	

void Timer2_init(void);
void ws2812_DispStringLine_EN_CH ( unsigned char * pStr, 
                                    uint8_t colorflag, 
                                    uint8_t delayflag,
                                    uint8_t disflag );

void TempBuffer ( uint8_t (*date)[32], uint8_t usTemp[][32], uint8_t flag );
void Ws2812_SendusChar(uint8_t (*color)[3], uint16_t len);

void UsChar_LeftDisplay(uint8_t (*date)[32], 
                        uint8_t (*color)[3], 
                        uint8_t num, 
                        uint8_t delayflag);

void ChoiceColor( uint8_t flag, uint8_t (*color)[3] );
void ChoiceSpeed( uint8_t flag );

#endif /* __LED_H */
